package com.lmh.backend.service.serviceImpl;

import com.lmh.backend.dao.AdminDao;
import com.lmh.backend.entity.Admin;
import com.lmh.backend.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao;
    @Autowired
    public void setAdminDao(AdminDao adminDao) {
        this.adminDao = adminDao;
    }

    @Override
    public Admin getAdminByName(String adminName) {
        return adminDao.getAdminByName(adminName);
    }

    @Override
    public void save(Admin admin) {
        adminDao.save(admin);
    }
}
